package com.offcn.conller;

import com.offcn.pojo.Ren;
import com.offcn.service.Ren_AddressService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@RestController
@RequestMapping("/ren")
public class Ren_AddressConller {
    @Autowired
    Ren_AddressService ren_addressService;
    @GetMapping("/selectid/{id}")
    public Ren selectid(@PathVariable int id){
        return   ren_addressService.selectid(id);
    }
    @GetMapping ("/selectall")
    public List<Ren> selectall(){
        return   ren_addressService.selectall();
    }

}
